Skip to content

[orion-server] feat: add buck2 log segment function , add tasks interface and so on...#1345

Merged
genedna merged 10 commits into
gitmono-dev:mainfrom
Ivanbeethoven:main
Aug 18, 2025
Merged

[orion-server] feat: add buck2 log segment function , add tasks interface and so on...#1345
genedna merged 10 commits into
gitmono-dev:mainfrom
Ivanbeethoven:main

Conversation

@Ivanbeethoven

Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: Xiaoyang Han <lux1an@qq.com>
Signed-off-by: Xiaoyang Han <lux1an@qq.com>
Signed-off-by: Xiaoyang Han <lux1an@qq.com>
Signed-off-by: Xiaoyang Han <lux1an@qq.com>
Signed-off-by: Xiaoyang Han <lux1an@qq.com>
Signed-off-by: Xiaoyang Han <lux1an@qq.com>
@vercel

vercel Bot commented Aug 17, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
mega Ready Ready Preview Comment Aug 18, 2025 2:11am

Signed-off-by: Lux1an <lux1an@qq.com>
Signed-off-by: Xiaoyang Han <lux1an@qq.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds new functionality to the orion-server including a buck2 log segment function and tasks interface improvements. The changes focus on enhancing database initialization, API endpoints, and dependency configurations.

  • Updates dependencies to include TLS support for tokio-tungstenite and reqwest
  • Modifies the tasks API endpoint to filter by MR number instead of returning all tasks
  • Adds database initialization through Docker Compose with schema creation

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
orion/Cargo.toml Adds TLS features to networking dependencies
orion-server/src/server.rs Updates OpenAPI documentation for new task interface
orion-server/src/api.rs Modifies tasks endpoint to filter by MR parameter
orion-server/docker-compose.yml Adds database initialization service with schema setup
orion-server/db/schema.sql Creates database schema with builds table and indexes
ceres/src/api_service/mono_api_service.rs Minor formatting and import organization changes
Comments suppressed due to low confidence (1)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread orion-server/src/api.rs
@@ -812,6 +812,9 @@ impl TaskInfoDTO {
#[utoipa::path(
get,
path = "/tasks",

Copilot AI Aug 17, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The OpenAPI path documentation shows "/tasks" but the actual route is "/tasks/{mr}". The path should be updated to "/tasks/{mr}" to match the implementation.

Suggested change
path = "/tasks",
path = "/tasks/{mr}",

Copilot uses AI. Check for mistakes.
use super::*;
use crate::model::mr::MrDiffFile;

use crate::model::mr::{MrDiffFile, MrPageInfo};

Copilot AI Aug 17, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import adds MrPageInfo but it doesn't appear to be used in the visible test code. If it's not used elsewhere in the test module, this import should be removed.

Suggested change
use crate::model::mr::{MrDiffFile, MrPageInfo};
use crate::model::mr::MrDiffFile;

Copilot uses AI. Check for mistakes.
Signed-off-by: Han Xiaoyang <lux1an@qq.com>
@genedna
genedna added this pull request to the merge queue Aug 18, 2025
Merged via the queue into gitmono-dev:main with commit 03abe6d Aug 18, 2025
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants